import type { ArmorsModel, ResultModel, PageResultModel,TqcModelArray ,TqcModel,TqcModelResult} from '@/api/model/model'
import request from '@/utils/request'


export const queryTqcPageApi = () => request.get<any, any>(`/tqc/tqcList`)

export const queryTqcByIdApi = (id: number) => request.get<any, ResultModel>(`/tqc/getTqcById/${id}`)

export const updateApi = (tqc:TqcModel) => request.post<any, ResultModel>(`/tqc/tqcAddOrUpdate`, tqc)
export const addApi = (tqc:TqcModel) => request.post<any, ResultModel>(`/tqc/tqcAddOrUpdate`, tqc)

export const deleteApi = (id: number) => request.delete<any, ResultModel>(`/tqc/tqcDelById/${id}`)
export const batchDeleteApi = (ids: (number| undefined)[]) => request.post<any, ResultModel>(`/tqc/tqcBatchDelById`,ids)